<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
<style type="text/css">
table.sample {
	border-width: 0px;
	border-spacing: 2px;
	border-style: outset;
	border-color: gray;
	border-collapse: collapse;
	background-color: rgb(255, 250, 250);
}
table.sample th {
	border-width: 2px;
	padding: 3px;
	border-style: solid;
	border-color: gray;
	background-color: rgb(255, 245, 238);
	-moz-border-radius: ;
}
table.sample td {
	border-width: 2px;
	padding: 3px;
	border-style: solid;
	border-color: gray;
	background-color: rgb(255, 245, 238);
	-moz-border-radius: ;
}
</style>

<f:view>
    <f:loadBundle basename="citypress" var="msg2"/>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
            <title>View All Comments</title>
        </head>
        <body>
        <h:form id="commentsAllForm">
            <h:messages/>
            <h:dataTable styleClass="sample" id="table1" value="#{commentBean.customers}" var="comm">
                <f:facet name="header">
                    <h:outputText value="#{msg2.all}" />
                </f:facet>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Comment Id" />
                    </f:facet>
                    <h:outputText value="#{comm.id}" />
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Article Id" />
                    </f:facet>
                    <h:outputText value="#{comm.article_id}" />
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Comment Body" />
                    </f:facet>
                    <h:outputText value="#{comm.comment_body}" />
                </h:column>
                <h:column>
                    <h:commandLink id="showCustomer" value="#{msg.details}" action="" />                
                </h:column>
                <h:column>
                    <h:commandLink id="deleteCustomer" value="#{msg.delete}" action="" />                
                </h:column>
            </h:dataTable>   
                <br>    
            <h:commandButton value="#{msg.retrieve}" action=""/>
            <h:commandButton value="#{msg.new}" action=""/>
        </h:form>

        </body>
    </html>
</f:view>
